package com.huike.web.controller.system;

import com.huike.clues.domain.Contract;
import com.huike.clues.service.ContractService;
import com.huike.common.core.controller.BaseController;
import com.huike.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/contract")
public class ContractController extends BaseController {

    @Autowired
    private ContractService contractService;

    //查询合同列表
    @GetMapping("/list")
    public TableDataInfo selectList(Contract contract) {
        startPage();
        List<Contract> list = contractService.selectList(contract);
        return getDataTable(list);
    }


}
